package cn.bdqn.service.impl;

import cn.bdqn.domain.*;
import cn.bdqn.service.OrderService;
import cn.bdqn.utils.result.Result;
import cn.bdqn.utils.result.ResultGenerator;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 服务降级本地方法
 * @author dkj
 */
@Component
public class OrderServiceImpl implements OrderService {


    @Override
    public Result queryByPrimaryKey(Integer id) {

        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByOrderNumberAndPaymentType(Integer currentPage, Integer pageSize, String orderNumber, Integer paymentType, Integer state) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveOrder(Order order) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateOrder(Order order) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result deleteOrder(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateOrderFrom(OrderForm orderForm) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result save(List<OrderForm> orderForms) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdDelivery(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveDelivery(Delivery delivery) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryBySendFreightId(Integer currentPage, Integer pageSize, String sendFreightNumber) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateDelivery(Delivery delivery) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdReceipt(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryBySendFreightId(Integer currentPage, Integer pageSize, String sendFreightNumber, Integer state) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveReceipt(Receipt receipt) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateReceipt(Receipt receipt) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdReplenish(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result selectBySendNumberAndTransportState(Integer currentPage, Integer pageSize, String sendFreightNumber, Integer transportState) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveReplenish(Replenish replenish) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateReplenish(Replenish replenish) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdReplenishEquip(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByReplenishId(Integer replenishId) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveReplenishEquip(List<ReplenishEquip> replenishEquips) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateReplenishEquip(ReplenishEquip replenishEquip) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdSendFreight(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByLikeSendFreightNumber(String sendFreightNumber) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryLikeSendFreightNumberByPaymentTypeBySendFreightState(Integer currentPage, Integer pageSize, String sendFreightNumber, Integer paymentType, Integer sendFreightState) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveSendFreight(SendFreight sendFreight) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateSendFreight(SendFreight sendFreight) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryByIdSendEquip(Integer id) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result queryBySendFreightId(Integer sendFreightId) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result saveSendEquip(List<SendEquip> sendEquips) {
        return ResultGenerator.genFailResult("失败了");
    }

    @Override
    public Result updateSendEquip(SendEquip sendEquip) {
        return ResultGenerator.genFailResult("失败了");
    }
}
